/*
 *  detailsview.h
 *  Perceel
 *
 *  Created by Nicola Gigante on 12/05/08.
 *  Copyright 2008 Nicola Gigante. All rights reserved.
 *
 */

#ifndef __DETAILSVIEW_H__
#define __DETAILSVIEW_H__

#include <QGroupBox>
#include <QMap>
#include <QList>
#include <QtDebug>

#include "ui_detailsview.h"

class DetailsView : public QGroupBox, Ui::DetailsView
{
	Q_OBJECT
	
	QMap<QString, QString> map;
	
public:
	DetailsView(QWidget *parent = NULL);

public slots:
	void setDetails(const QMap<QString, QString> &details);
	void setDetail(QString key, QString details);
	void removeDetail(QString key);
	void clear() { map.clear(); updateWidgets(); }
	
private:
	void updateWidgets();
};


#endif
